//
//  TipHander.m
//  LotteryClient
//
//  Created by Suny on 14-7-17.
//  Copyright (c) 2014年 CTTC. All rights reserved.
//

#import "TipHandler.h"



@implementation TipHandler

+ (void)showWithTitle:(NSString *)title type:(TipType)type
{
    [TipView showWithTitle:title type:type];
}

+ (void)showFail:(NSString *)title
{
    [TipHandler showWithTitle:title type:TipType_fail];
}

+ (void)showSuccess:(NSString *)title
{
    [TipHandler showWithTitle:title type:TipType_success];
}

+ (void)showAlert:(NSString *)title
{
    [TipHandler showWithTitle:title type:TipType_alert];
}

#pragma mark TipHandler simple wrapper

+ (void)showNetWorkFailedOnlyTextWithResponseStatus:(NSInteger)responseStatus
{
    if (responseStatus != 200)
    {
        [TipHandler showWithTitle:NetWork_NotReachable type:TipType_alert];
    }
}

+ (void)showNewWorkNotReachable
{
    [TipHandler showWithTitle:NetWork_NotReachable type:TipType_alert];
}

+ (void)showDataErrorTextOnly
{
    [TipHandler showWithTitle:Data_Error type:TipType_fail];
}

@end
